package com.example.api.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.time.LocalDateTime;

/**
 * 租户创建DTO
 * 用于简化创建租户时需要的参数
 * 
 * @author example
 * @since 1.0.0
 */
@Data
@Schema(description = "租户创建请求参数")
public class TenantCreateDTO {
    
    @Schema(description = "租户名称", example = "示例租户", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "租户名称不能为空")
    @Size(min = 2, max = 100, message = "租户名称长度必须在2-100个字符之间")
    private String name;
    
    @Schema(description = "租户别称", example = "示例", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "租户别称不能为空")
    @Size(min = 2, max = 100, message = "租户别称长度必须在2-100个字符之间")
    private String nickname;
    
    @Schema(description = "租户邮箱", example = "tenant@example.com")
    @Email(message = "邮箱格式不正确")
    private String email;
    
    @Schema(description = "租户电话", example = "13800138000")
    private Long phone;
    
    @Schema(description = "租户地址", example = "北京市海淀区")
    private String address;
    
    @Schema(description = "授权开始时间")
    private LocalDateTime permissionStart;
    
    @Schema(description = "授权结束时间")
    private LocalDateTime permissionEnd;
    
    @Schema(description = "授权用户数量", example = "10")
    private Integer permissionUserCount;
} 